<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../vue.global.js"></script>
</head>
<body>
<div id="app"></div>
<script>
    const app = Vue.createApp({
        data() {
            return {
                show: true,
                conditionOne: false,
                conditionTwo: true
            }
        },
        methods: {},
        template: `
          <div v-if="show">Hello World</div>
          <div v-show="show">Hello World</div>

          <div v-if="conditionOne">if</div>
          <div v-else-if="conditionTwo">elseif</div>
          <div v-else="conditionTwo">else</div>
        `
    });
    const vm = app.mount("#app");
    /**
     * v-if 是直接销毁dom元素
     * v-show 是添加样式 display:none
     */
</script>
</body>
</html>